<!DOCTYPE html>
<html lang="en" class="no-js">
    <head>
        <?php Yii::app()->clientScript->registerCoreScript('jquery'); ?>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> 
        <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 
        <title><?php echo $this->pageTitle; ?></title>
        <meta name="description" content="A sidebar menu as seen on the Google Nexus 7 website" />
        <meta name="keywords" content="google nexus 7 menu, css transitions, sidebar, side menu, slide out menu" />
        <meta name="author" content="Codrops" />
        <link rel="shortcut icon" href="<?php echo Yii::app()->request->baseUrl; ?>/favicon.ico" />
        
        <?php if(Environment::isProduction()): ?>
            <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
            <link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
        <?php else: ?>
            <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/plugins/bootstrap-3.1.1/css/bootstrap.min.css" />
            <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/plugins/font-awesome-4.1.0/css/font-awesome.min.css" />
        <?php endif; ?>
        
        <link rel="stylesheet" type="text/css" href="<?php echo $this->cssPath; ?>/style.css" />
        <!--[if lt IE 8]><!-->
	<link rel="stylesheet" href="<?php echo $this->cssPath; ?>/ie7/ie7.css" />
	<!--<![endif]-->
        <script src="<?php echo $this->jsPath; ?>/modernizr.custom.js"></script>
        
        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
            <script src="http://getbootstrap.com/docs-assets/js/html5shiv.js"></script>
            <script src="http://getbootstrap.com/docs-assets/js/respond.min.js"></script>
        <![endif]-->
    </head>
    <body>
        <!--Start Header-->
<div id="screensaver">
    <canvas id="canvas"></canvas>
    <i class="fa fa-lock" id="screen_unlock"></i>
</div>
<div id="modalbox">
    <div class="devoops-modal">
        <div class="devoops-modal-header">
            <div class="modal-header-name">
                <span>Basic table</span>
            </div>
            <div class="box-icons">
                <a class="close-link">
                    <i class="fa fa-times"></i>
                </a>
            </div>
        </div>
        <div class="devoops-modal-inner">
        </div>
        <div class="devoops-modal-bottom">
        </div>
    </div>
</div>
<header class="navbar">
    <div class="container-fluid expanded-panel">
        <div class="row">
            <div id="logo" class="col-xs-12 col-sm-2">
                <a href="<?php echo Yii::app()->createUrl('acp'); ?>"><img src="<?php echo $this->imagesPath; ?>/logo.jpg" /></a>
            </div>
            <div id="top-panel" class="col-xs-12 col-sm-10">
                <div class="row">
                    <div class="col-xs-8 col-sm-4">
                        <a href="#" class="show-sidebar">
                            <i class="fa fa-bars"></i>
                        </a>
                        <!--
                        <div id="search">
                            <input type="text" placeholder="search"/>
                            <i class="fa fa-search"></i>
                        </div>
                        -->
                    </div>
                    <div class="col-xs-4 col-sm-8 top-panel-right">
                        <ul class="nav navbar-nav pull-right panel-menu">
                            <!--
                            <li class="hidden-xs">
                                <a href="index.html" class="modal-link">
                                    <i class="fa fa-bell"></i>
                                    <span class="badge">7</span>
                                </a>
                            </li>
                            <li class="hidden-xs">
                                <a class="ajax-link" href="ajax/calendar.html">
                                    <i class="fa fa-calendar"></i>
                                    <span class="badge">7</span>
                                </a>
                            </li>
                            <li class="hidden-xs">
                                <a href="ajax/page_messages.html" class="ajax-link">
                                    <i class="fa fa-envelope"></i>
                                    <span class="badge">7</span>
                                </a>
                            </li>
                            -->
                            
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle account" data-toggle="dropdown">
                                    <div class="avatar">
                                        <img src="<?php echo Yii::app()->user->avatar; ?>" class="img-rounded" alt="avatar" />
                                    </div>
                                    <i class="fa fa-angle-down pull-right"></i>
                                    <div class="user-mini pull-right">
                                        <span class="welcome">Welcome,</span>
                                        <span><?php echo Yii::app()->user->displayName; ?></span>
                                    </div>
                                </a>
                                <ul class="dropdown-menu">
                                    <li>
                                        <a href="#">
                                            <i class="fa fa-user"></i>
                                            <span class="hidden-sm text">Profile</span>
                                        </a>
                                    </li>
                                    
                                    <!--
                                    <li>
                                        <a href="ajax/page_messages.html" class="ajax-link">
                                            <i class="fa fa-envelope"></i>
                                            <span class="hidden-sm text">Messages</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="ajax/gallery_simple.html" class="ajax-link">
                                            <i class="fa fa-picture-o"></i>
                                            <span class="hidden-sm text">Albums</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="ajax/calendar.html" class="ajax-link">
                                            <i class="fa fa-tasks"></i>
                                            <span class="hidden-sm text">Tasks</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="#">
                                            <i class="fa fa-cog"></i>
                                            <span class="hidden-sm text">Settings</span>
                                        </a>
                                    </li>
                                    -->
                                    <li>
                                        <a href="<?php echo $this->logoutUrl; ?>">
                                            <i class="fa fa-power-off"></i>
                                            <span class="hidden-sm text">Logout</span>
                                        </a>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</header>
<!--End Header-->
        
<!--Start Container-->
<div id="main" class="container-fluid">
    <div class="row">

        <?php $this->renderPartial('/layouts/_navigationMenu'); ?>

        <!--Start Content-->
        <div id="content" class="col-xs-12 col-sm-10">
            <!--
            <div class="preloader">
                <img src="<?php //echo $this->imagesPath; ?>/devoops_getdata.gif" class="devoops-getdata" alt="preloader"/>
            </div>
            -->
            <div id="ajax-content">
                
                <div class="row">
                <div id="breadcrumb" class="col-xs-12">
                <?php $this->widget('BreadcrumbsWidget', array(
                    'tagName'=>'ol',
                    'separator'=>'',
                    'activeLinkTemplate'=>'<li><a href="{url}">{label}</a></li>',
                    'inactiveLinkTemplate'=>'<li><a href="#">{label}</a></li>',
                    'htmlOptions'=>array(
                        'class'=>'breadcrumb',
                    ),
                )); ?>
                </div>
                </div>
                <?php echo $content; ?>
            </div>
        </div>
        <!--End Content-->
    </div>
</div>
<!--End Container-->        

        <?php if(Environment::isProduction()): ?>
            <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
        <?php else: ?>
            <script src="<?php echo Yii::app()->theme->baseUrl; ?>/plugins/bootstrap-3.1.1/js/bootstrap.min.js"></script>
        <?php endif; ?>
        <script src="<?php echo $this->jsPath; ?>/devoops.js"></script>
    </body>
</html>